package framework.factory;

import framework.account.IEntry;
import framework.account.Transaction;

public class TransactionFactory {
	public static IEntry createDepostiTransaction(float amount,String result){
		return new Transaction("deposit",amount,result);
	}
	public static IEntry createWithdrawTransaction(float amount, String result){
		return new Transaction("withdraw",amount,result);
	}
	public static IEntry createAddInterestTransaction(float previousBalance, String result){
		return new Transaction("addinterest",previousBalance,result);
	}
}